package Adapter;

import java.util.ArrayList;
import java.util.List;
import DomainPackage.*;
import Sistem.*;
public class SeferAdapter {

	public static List<Sefer> getAllSefer(){
        List<Object> objectList = Register.getAll(Sefer.class);
        //as all getAll functions, we have to cast to according class
        List<Sefer> seferList = new ArrayList<Sefer>();
        for(Object temp:objectList){
                seferList.add((Sefer)temp);
        }
        return seferList;
	}
}
